from flask import Blueprint
from flask_cors import cross_origin

# /auth 访问前缀
index_bp = Blueprint("index", __name__)


@index_bp.route("/", methods=['POST', 'GET'])
def index():
    return "hello world"


@index_bp.route("/test", methods=['GET'])
# @cross_origin()
def test():
    return "test"
